package com.ebao.po.user;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.ebao.constants.UserType;
import com.ebao.po.admin.TAdmin;

/**
 * @desc　小贴士
 * @author snow
 * @date 2012-6-29
 */
@Entity
@Table(name = "T_Tip")
public class TTip implements Serializable {

	private static final long serialVersionUID = -3559230895913614586L;

	private Long id; 			// 主键
	private String type;		// 类型,从公共属性中查询,key为PublicAttribute.TIP_TYPE
	private String title; 		// 标题
	private String content; 	// 内容
	private String createDate;	// 发表日期
	private UserType userType;  // 
	private String userId;		// Id
	private Integer status;		// 状态，0未审核，1审核通过，2审核未通过
	private TAdmin admin;		// 审核者
	
	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Lob
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	@Column(length = 1)
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(length = 19)
	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public TAdmin getAdmin() {
		return admin;
	}

	public void setAdmin(TAdmin admin) {
		this.admin = admin;
	}

}
